package org.spring.springboot.app.base;

public class Constants {
    public static final String MAIL_SEND_CODE_REDIS_KEY = "MAIL_SEND_CODE_";
    public static final String MAIL_SEND_OUT_TIME_REDIS_KEY = "MAIL_SEND_OUT_TIME_";
    public static final String MAIL_SEND_IMAGE_CODE_REDIS_KEY = "MAIL_SEND_IMAGE_CODE_";

    public static final String DICT_REDIS_KEY = "DICT_";
    public static final String SYSTEMOPTION_REDIS_KEY = "SYSTEMOPTION_";


    /**
     * 在线支付回调状态
     */
    public static final int ONLINE_PAY_CALL_BACK_SOURCE_1 = 1;//微信
    public static final int ONLINE_PAY_CALL_BACK_SOURCE_2 = 2;//支付宝

    public static final int ONLINE_PAY_CALL_ZERO = 0;
    public static final int ONLINE_PAY_CALL_SUCCESS = 1;
    public static final int ONLINE_PAY_CALL_FAIL = 2;

    public static final int ONLINE_PAY_ACTION_DEALFROM_0  = 0;
    public static final int ONLINE_PAY_ACTION_DEALFROM_1  = 1;
    public static final int ONLINE_PAY_ACTION_DEALFROM_2  = 2;





    /*******************************OPTION 表相关 ******************************/
    //公司名称
    public final static String OPTION_COMPANY_NAME = "company.name";
    /**
     * 支付宝支付相关
     */

        public final static String OPTION_ALIPAY_PAY_SUCCESS_STATE = "alipay.pay.success.state";
        public final static String OPTION_ALIPAY_APPID = "alipay.appid";
        public final static String OPTION_ALIPAY_FUND_TRANS_TOACCOUNT_TRANSFER = "alipay.fund.trans.toaccount.transfer";
        public final static String OPTION_ALIPAY_TRADE_PRECREATE = "alipay.trade.precreate";
        public final static String OPTION_ALIPAY_TRADE_REFUND = "alipay.trade.refund";
        public final static String OPTION_ALIPAY_PRIVATE_KEY = "alipay.private.key";
        public final static String OPTION_ALIPAY_PARTNER = "alipay.partner";
        public final static String OPTION_ALIPAY_SELLER_ID = "alipay.seller.id";
        public final static String OPTION_ALIPAY_SIGN_TYPE = "alipay.sign.type";
        public final static String OPTION_ALIPAY_INPUT_CHARSET = "alipay.input.charset";
        public final static String  OPTION_ALIPAY_NOTIFY_URL = "alipay.notify.url";
        public final static String  OPTION_ALIPAY_VERSION = "alipay.version";

    /**
     * 微信相关
     */
        public static final String FIELD_SIGN = "sign";
        public static final String OPTION_API_WEIXIN_PAY_SUCCESS_STATE="api.weixin.pay.success.state";

        public final static String OPTION_WX_CREATE_ORDER_URL = " wx.create.order.url";
        public final static String OPTION_WX_APPSECRET = "wx.appSecret";
        public final static String OPTION_WXPAY_APPID = " wxpay.appid";
        public final static String OPTION_WXPAY_MCHID = "wxpay.mchid";
        public final static String OPTION_WXPAY_KEY = "wxpay.key";
        public final static String OPTION_WXPAY_SIGN_TYPE = "wxpay.sign.type";
        public final static String OPTION_WXPAY_TRADE_TYPE = "wxpay.trade.type";
        public final static String OPTION_WXPAY_NOTIFY_URL = " wxpay.notify.url";


    /**
     * 广告套餐 金额配置
     */
    public static final String ADV_COMB_INFO_MIN_ADV_TURN_PRICE  = "adv.comb.info.min.adv.turn.price";
    public static final String ADV_COMB_INFO_MIN_ADV_ACCURATE_PRICE  = "adv.comb.info.min.adv.accurate.price";


    public static final String DEVICE_REGISTER_URL  = "device.register.url";


    /*******************************OPTION 表相关 ******************************/


    //在线充值处理类型 1.代理商充值
    public static final int ONLINEPAY_OPERATION_TYPE_1 = 1;

    //广告类型 1.手机屏保广告  2.手机分类广告 3.广告机广告 4.家庭锁广告
    public static final int ADV_INFO_TYPE_1  = 1;
    public static final int ADV_INFO_TYPE_2  = 2;
    public static final int ADV_INFO_TYPE_3  = 3;
    public static final int ADV_INFO_TYPE_4  = 4;

    //投放类型 1轮播 2精准
    public static final int ADV_SCREEN_INFO_REWARD_1  = 1;
    public static final int ADV_SCREEN_INFO_REWARD_2  = 2;
    //支付状态 0临时 1未支付 2已支付 3已退款
    public static final int ADV_INFO_TYPE_PAY_STATE_0 = 0;
    public static final int ADV_INFO_TYPE_PAY_STATE_1 = 1;
    public static final int ADV_INFO_TYPE_PAY_STATE_2 = 2;
    public static final int ADV_INFO_TYPE_PAY_STATE_3 = 3;
    //广告机广告接受状态 0临时 1待接受 2通过 3拒绝
    public static final int ADV_SCREEN_INFO_STATE_0 = 0;
    public static final int ADV_SCREEN_INFO_STATE_1 = 1;
    public static final int ADV_SCREEN_INFO_STATE_2 = 2;
    public static final int ADV_SCREEN_INFO_STATE_3 = 3;
    //广告审核状态 0临时 1待审核 2通过 3拒绝
    public static final int ADV_EXAM_STATE_0 = 0;
    public static final int ADV_EXAM_STATE_1 = 1;
    public static final int ADV_EXAM_STATE_2 = 2;
    public static final int ADV_EXAM_STATE_3 = 3;
    //代理商钱包日志类型
    /*
    100充值
    101提现扣除
    102发布广告机广告扣除
    103发布家庭锁广告扣除
    104发布手机屏保广告扣除
    105广告机广告获得
    106家庭锁广告获得
    107手机屏保广告获得
    108提现失败返还获得
    */
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_100 = 100;
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_101 = 101;
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_102 = 102;
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_103 = 103;
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_104 = 104;
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_105 = 105;
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_106 = 106;
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_107 = 107;
    public static final int SYS_OFFICE_BALANCE_LOG_TYPE_108 = 108;

    /*
        101广告机广告服务费
        102手机屏保广告服务费
        103广告机广告佣金
        104家庭锁广告佣金
        105手机屏保广告佣金
     */
    public static final int PLATFORM_BALANCE_LOG_TYPE_101 = 101;
    public static final int PLATFORM_BALANCE_LOG_TYPE_102 = 102;
    public static final int PLATFORM_BALANCE_LOG_TYPE_103 = 103;
    public static final int PLATFORM_BALANCE_LOG_TYPE_104 = 104;
    public static final int PLATFORM_BALANCE_LOG_TYPE_105 = 105;


    //类型 type 1.代理商 2.分销商 3.物业
    public static final int SYS_OFFICE_TYPE_1 = 1;
    public static final int SYS_OFFICE_TYPE_2 = 2;
    public static final int SYS_OFFICE_TYPE_3 = 3;

    //用户钱包日志类型
    /*
    100充值
    101提现扣除
    102提现失败返还获得
    */
    public static final int SYS_USER_BALANCE_LOG_TYPE_100 = 100;
    public static final int SYS_USER_BALANCE_LOG_TYPE_101 = 101;
    public static final int SYS_USER_BALANCE_LOG_TYPE_102 = 102;


    /*
    购买二维码单价
    */
    public final static String TOW_CODE_PRICE = "tow.code.price";
    public final static String TOW_CODE_URL = "tow.code.url";

}
